import {createRouter, createWebHashHistory} from 'vue-router'
import HomePage from "../views/HomePage/HomePage.vue";
import DietCheck from "../views/DietCheck/DietCheck";
import ExerciseVolume from "../views/ExerciseVolume/ExerciseVolume";
import PhysiologicalTest from "../views/PsychologicalTest/PhysiologicalTest";

// 创建路由对象
const routes = [
    {
        path:'/',
        name:'Homepage',
        component: HomePage,
    },
    {
        path: '/homepage',
        component: HomePage,
    },
    {
        path: '/diet',
        component: DietCheck,
    },
    {
        path: '/exercise',
        component: ExerciseVolume,
    },
    {
        path: '/physiology',
        component: PhysiologicalTest,
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes,
});

// 导出路由对象
export default router;